package kdtree;

import util.GeoVertex;

public class Node
{
	public Node parent;
	public Node left;
	public Node right;
	public GeoVertex data;
	
	public Node()
	{
		this.parent = null;
		this.left = null;
		this.right = null;
		this.data = null;
	}
	
	public Node(Node l, Node r)
	{
		this.left = l;
		this.right = r;
		this.data = null;
	}
	
	public Node(Node p, Node l, Node r)
	{
		this.parent = p;
		this.left = l;
		this.right = r;
		this.data = null;
	}
	
	public Node(Node l, Node r, GeoVertex v)
	{
		this.left = l;
		this.right = r;
		this.data = v;
	}
	
	public Node(Node p, Node l, Node r, GeoVertex v)
	{
		this.parent = p;
		this.left = l;
		this.right = r;
		this.data = v;
	}
}
